import { lang } from '../locales/zh-cn';

/**
 * @author 田尘殇Sean(sean.snow@live.com)
 * @date 2017/3/9
 */
const ModePayment = {
  posPay: 'POS_PAY',
  quickPay: 'QUICK_PAY',
  aliPay: 'AliPay_PAY',
  weChatPay: 'WeChat_PAY',
  weChatScanQrcodePay: 'WeChat_SCAN_QRCODE_PAY',
  aliPayScanQrcodePay: 'AliPay_SCAN_QRCODE_PAY',
  balance: 'BALANCE',
  bankCard: 'BANK_CARD'
};

const ModePaymentText = {
  [ModePayment.posPay]: lang.mpos,
  [ModePayment.quickPay]: lang.quickPay,
  [ModePayment.aliPay]: lang.aliPay,
  [ModePayment.aliPayScanQrcodePay]: lang.aliPay,
  [ModePayment.weChatPay]: lang.weChatPay,
  [ModePayment.weChatScanQrcodePay]: lang.weChatPay
};

export {
  ModePayment as default,
  ModePaymentText
};
